import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import { resolve } from 'path';
import AutoImport from 'unplugin-auto-import/vite'
// import { VantResolver } from 'unplugin-vue-components/resolvers'

// https://vitejs.dev/config/
export default defineConfig({
	resolve: {
		alias: {
			'@': resolve(__dirname, 'src'),
		},
	},
  plugins: [
		uni(),
		AutoImport({
			// resolvers: [ VantResolver()],
			imports: [
				'vue',
				// 'vue-router',
				// 'vue-i18n',
				// '@vueuse/head',
				// '@vueuse/core',
			],
			dts: 'src/auto-imports.d.ts',
		}),
	],
});
